package com.example.rbac.controller.view;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2017/9/25.
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public String Home(){
        return "index";
    }
    @RequestMapping("/index")
    public String Index(){
        return "index";
    }

    @RequestMapping("/welcome")
    public String welcome(Model model){
        model.addAttribute("test","123");
        return "welcome";
    }
}
